<!DOCTYPE html>
<html>

<head>
    <title>我的兑换记录</title>
    <include file="public@head" />
</head>

<body class="redeem_list">
    <div class="container-fluid">
        <div class="row">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <td>礼券</td>
                        <td>规格</td>
                        <td>名称</td>
                        <td>电话</td>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="list" item="vo">
                        <tr onclick="show(this)" data-url="{:url('CardRedeem/show',['id'=>$vo['id']])}">
                            <td>{$vo.tpname}</td>
                            <td>{$vo.spk}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.tele}</td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
        </div>
        <div class="row tips">
            <div class="col-xs-12">
                点击记录，查看物流信息。
            </div>
        </div>
    </div>
    <include file="public@scripts" />
    <script>
        var show = function(data){
            url = $(data).data("url");
            location.href= url;
        }
    </script>
</body>

</html>